<?php

class myNewsItemRouter extends myCategoryRouter{

	protected $newsItem = false;

        public function getNewsItemObject(){
			if(!$this->newsItem){
				$params = $this->getParameters();
				$this->newsItem = Doctrine::getTable('NewItem')->findOneBySlug($params['slug']);
			}


			return $this->newsItem;
        }

}